package net.core.service.encrype;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class DES3Test {

	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testDecryptString() {
		String sResult = DES3.decrypt("35b51367d2112bb4116797b3e50fd0b50b0134026ada078a9bf7856ef0d12689");
		System.out.println(sResult);
		
	}

	@Test
	public void testEncryptString() {
		//mini_program/"syd38,]50[3"@BJMINI_NEW
		String s= "mini_program/\"fy50ExjMgz[bkd5\"@BJMINI_NEW";
		String sResult = DES3.encrypt48(s);
		System.out.println(s+":"+sResult);
	}

}
